package com.example.controller;

import com.example.model.RecycleQrcode;
import com.example.model.ScanProcess;
import com.example.service.RecycleQrcodeService;
import com.example.service.ScanProcessService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;


@RestController
@RequestMapping("/RecycleQrcode")
public class RecycleQrcodeController {

    @Resource
    public RecycleQrcodeService recycleQrcodeService;

    @GetMapping("/selectByQrcode")
    public RecycleQrcode selectRecycleQrcodeByQrcode(String qrcode) {
        return  recycleQrcodeService.selectRecycleQrcodeByQrcode(qrcode);

    }

}


